<template>
	<view class="wf-box">
		<view class="head" :style="{ paddingTop: navBarHeight }">
			<view class="head-np">
				<view class="back" @click="back()">
					<image src="@/static/img/me-43.png"></image>
				</view>
				<view class="title">社交值明细</view>
				<view class="text"></view>
			</view>
		</view>
		<image class="top_bg" src="@/static/img/social_bg.png" mode="widthFix"></image>

		<view class="imgs">
			<view class="center">
				<image src="@/static/img/social_img1.png" mode="widthFix"></image>
				<view class="">3.50</view>
				<view class="">我的社交值</view>
			</view>
			<view class="near" v-for="item in 3">
				<image src="@/static/img/social_img2.png" mode="widthFix"></image>
				<view>+0.5</view>
			</view>
		</view>

		<view class="main" :style="{ paddingTop: navBarHeight }">
			<view class="title">
				<view>社交值明细</view>
				<view>2024年3月</view>
			</view>
			<view class="item" v-for="item in 3">
				<image src="../../static/img/social_icon.png" mode="widthFix"></image>
				<view class="item_text">
					<view>连续签到{{item}}天</view>
					<view>2024-03-27 09:25</view>
				</view>
				<view class="item_num">+2</view>
			</view>
		</view>
	</view>
</template>

<script>
	import navBarMixin from '@/mixin/navBarMixin.js'
	export default {
		data() {
			return {
				imagelist: [
					'../../static/img/v0.png',
					'../../static/img/v1.png',
					'../../static/img/v2.png',
					'../../static/img/v3.png',
					'../../static/img/v4.png',
					'../../static/img/v5.png',
					'../../static/img/v6.png',
					'../../static/img/v7.png',
					'../../static/img/v8.png',
					'../../static/img/v9.png',
					'../../static/img/v10.png',
				],
			}
		},
		mixins: [navBarMixin],
		methods: {
			back() {
				uni.navigateBack()
			},
			record() {
				uni.navigateTo({
					url: '/pages/me/rechargeRecord'
				})
			},
			signin() {
				uni.navigateTo({
					url: '/pages/me/signin'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wf-box {
		position: relative;
		overflow: hidden;
		height: 100vh;
		background-size: 100% 100%;
	}

	.head {
		position: fixed;
		z-index: 1;
		width: 100%;
		background: transparent;

		.head-np {
			display: flex;
			justify-content: space-between;
			align-items: center;
			width: 100%;
			height: 96rpx;
			padding: 0 30rpx;
			box-sizing: border-box;

			.back {
				image {
					width: 20rpx;
					height: 37rpx;
				}
			}

			.title {
				font-size: 36rpx;
				font-weight: bold;
				color: white;
			}

			.text {
				color: #E7C9B1;
				font-size: 30rpx;
			}
		}
	}

	.top_bg {
		width: 100%;
		display: block;
		// position: absolute;
		// top: 0;
		// left: 0;
	}

	.imgs {
		width: 100vw;
		height: 560rpx;
		margin-top: 176rpx;
		text-align: center;
		position: absolute;
		top: 0;
		left: 0;
		white-space: nowrap;

		// position: relative;
		.center {
			width: 336rpx;
			height: 336rpx;
			margin: 0 207rpx;
			position: absolute;

			image {
				width: 336rpx;
				position: absolute;
				left: 0;
				top: 0;
			}

			view {
				position: relative;

				&:nth-of-type(1) {
					font-weight: 700;
					font-size: 42rpx;
					color: #FFFFFF;
					padding-top: 120rpx;
				}

				&:nth-of-type(2) {
					font-size: 25rpx;
					color: #FFFFFF;
					margin-top: 10rpx;
				}
			}

		}

		.near {
			width: 86rpx;
			height: 86rpx;
			// background-color: palegoldenrod;
			position: absolute;

			// z-index: 999;
			image {
				width: 86rpx;
				position: absolute;
				left: 0;
				top: 0;
			}

			view {
				line-height: 86rpx;
				position: relative;
				font-size: 25rpx;
				color: #FFFFFF;
			}

			&:nth-of-type(1) {
				top: 0rpx;
				left: 190rpx;
			}

			&:nth-of-type(2) {
				top: 0rpx;
				right: 130rpx;
			}

			&:nth-of-type(3) {
				top: 180rpx;
				left: 100rpx;
			}
		}
	}

	.main {
		// margin-top: 176rpx;
		position: relative;
		margin-top: -20rpx;
		z-index: 888;
		border-radius: 20rpx;
		overflow: hidden;
		height: inherit;
		background: #FFFFFF;
		border-radius: 22rpx;
		padding: 30rpx;

		.title {
			display: flex;
			justify-content: space-between;
			align-items: center;

			view {
				&:nth-of-type(1) {
					font-weight: 500;
					font-size: 34rpx;
				}

				&:nth-of-type(2) {
					font-size: 30rpx;
					color: #666666;
				}
			}
		}

		.item {
			display: flex;
			align-items: center;
			height: 166rpx;
			border-bottom: 1rpx solid #EEEEEE;

			image {
				width: 50rpx;
				margin-right: 20rpx;
			}

			.item_text {
				flex: 1;

				view {
					&:nth-of-type(1) {
						font-size: 30rpx;
					}

					&:nth-of-type(2) {
						height: 42rpx;
						line-height: 42rpx;
						font-size: 26rpx;
						color: #999999;
						margin-top: 10rpx;
					}
				}
			}

			.item_num {
				font-size: 34rpx;
			}
		}
	}
</style>